# -*- coding: utf-8 -*-
"""
Created on Tue Jan 23 10:45:02 2018

@author: lizheng
"""
import sys
sys.path.append("/root/spbm/model")
import model as sp

#sp.prect(model_filename,data_filename,prectdata_savefilename)

'''
fitby_model(filename,filename2,model,size,modelsave_filename)
filename训练数据源路径
filename2测试数据源路径
models 模型
size 迭代器大小
modelsave_filename 模型保存路径
'''


sp.fitby_linear_model('/root/spbm/model/20180122.pkl.gz','/root/data/ZZSFP_HWXX.csv','/root/spbm/data/ZZSFP_HWXX_p.csv')
